﻿namespace OS.Common.Enums
{
    /// <summary>
    /// 返回结果类型
    /// </summary>
    public enum ResultType
    {
        /// <summary>
        /// 未发现结果
        /// </summary>
        None = -1,

        /// <summary>
        /// 保存成功
        /// </summary>
        SaveSuccess = 0,

        /// <summary>
        /// 成功
        /// </summary>
        Success = 1200,

        /// <summary>
        /// 参数错误
        /// </summary>
        ParameterError = 1301,

        /// <summary>
        /// 添加失败
        /// </summary>
        AddFail = 1320,

        /// <summary>
        /// 修改失败
        /// </summary>
        UpdateFail = 1330,

        /// <summary>
        /// 对象为空
        /// </summary>
        ObjectNull = 1404,

        /// <summary>
        /// 对象已存在
        /// </summary>
        ObjectExist = 1410,

        /// <summary>
        /// 对象状态错误
        /// </summary>
        ObjectStateError = 1420,

        /// <summary>
        /// 未知操作
        /// </summary>
        UnknowOperate = 1422,

        /// <summary>
        /// 未知来源
        /// </summary>
        UnknowSource = 1423,

        /// <summary>
        /// 未授权
        /// </summary>
        UnAuthorize = 1425,

        /// <summary>
        /// 权限不足
        /// </summary>
        NoRight = 1430,

        /// <summary>
        /// 授权冻结
        /// </summary>
        AuthFreezed = 1440,

        /// <summary>
        /// 内部错误
        /// </summary>
        InnerError = 1500
    }
}